package com.hairline.mapper;

import com.hairline.bean.vo.permission.PermissionsId;
import com.hairline.bean.vo.permission.SystemPermission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionAllMapper {
    List<SystemPermission> selectAllPermission();

    String[] selectAssignedPermissions(@Param("ids") Integer[] ids);

    PermissionsId selectPermissionIds(int roleId);

    void updatePermission(@Param("ids") Integer[] ids, @Param("roleId") Integer roleId);

    Integer[] selectNewIds(@Param("permissions") String[] permissions);

    void insertRole(@Param("id") Integer id);
}
